<template>
	<view>
		<view style="position: relative;">
			<view style="height: 20rpx;"></view>
			<image class="yueka-image" style="width: 700rpx;margin-left: 50%;transform: translateX(-50%);" mode="widthFix" src="../../static/vip_back_2.png"></image>
			<view style="
				background-color: #FFFFFF;
				display: inline-block;
				position: absolute;
				left: 50rpx;
				border-radius: 20rpx;
				font-size: 26rpx;
				padding: 10rpx;
				font-weight: bold;
				color: #AE9062;
				top:40rpx">惠&nbsp;享&nbsp;会&nbsp;员</view>
				
				<text style="
					font-size: 45rpx;
					color: #FFFFFF;
					position: absolute;
					top:35rpx;
					left: 220rpx;">月&nbsp;卡</text>
					
				<text style="
					font-size: 40rpx;
					color: #FFFFFF;
					position: absolute;
					bottom:15rpx;
					left: 50rpx;">主卡</text>
				
				<view :style="'box-shadow: 0 '+leftBoxShadow+'rpx '+topBoxShadow+'rpx #AE9062 inset;'"
					class="zengsong-yuekan">
					赠&nbsp;送
				</view>
				
				<view
				 class="jihuo-yueka"
				 :style="
				'box-shadow: 0 '+leftBoxShadow+'rpx '+topBoxShadow+'rpx #AE9062 inset;'">
					激&nbsp;活
				</view>
				<image 
					src="../../static/vip_logo.png" 
					style="
						position: absolute;
						width: 60rpx;
						top:50rpx;
						right: 50rpx;
						" 
					mode="widthFix"></image>
		</view>
		
		<view style="position: relative;color:#AA41E6">
			<view style="height: 20rpx;"></view>
			<image class="nianka-image" style="width: 700rpx;margin-left: 50%;transform: translateX(-50%);" mode="widthFix" src="../../static/vip_back_1.png"></image>
			<view style="
				background-color: #FFFFFF;
				display: inline-block;
				position: absolute;
				left: 50rpx;
				border-radius: 20rpx;
				font-size: 26rpx;
				padding: 10rpx;
				font-weight: bold;
				top:40rpx">美&nbsp;容&nbsp;会&nbsp;员</view>
				
				<text style="
				
					font-size: 45rpx;
					color: #FFFFFF;
					position: absolute;
					top:35rpx;
					filter: grayscale(100%);
					left: 220rpx;">年&nbsp;卡</text>
					
				<text v-show="false" style="
					font-size: 40rpx;
					color: #FFFFFF;
					position: absolute;
					bottom:15rpx;
					left: 50rpx;">主卡</text>
				
				<view style="
					position: absolute;
					bottom: 20rpx;
					right: 200rpx;
					border-radius: 100rpx;
					padding: 10rpx 20rpx 10rpx 20rpx;
					display: inline-block;
					background-color: #FFFFFF;
					position: absolute;">
					赠&nbsp;送
				</view>
				
				<view style="
					position: absolute;
					bottom: 20rpx;
					right: 60rpx;
					border-radius: 100rpx;
					padding: 10rpx 20rpx 10rpx 20rpx;
					display: inline-block;
					background-color: #FFFFFF;
					position: absolute;">
					激&nbsp;活
				</view>
				<image 
					src="../../static/vip_logo.png" 
					style="
						filter: invert(100%);
						position: absolute;
						width: 60rpx;
						top:50rpx;
						right: 50rpx;
						" 
					mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				leftBoxShadow:5,
				topBoxShadow:10
			}
		},
		mounted() {
			
			var leftBoxShadowInter=setInterval(()=>{
				this.leftBoxShadow--;
				if(this.leftBoxShadow==0){
					clearInterval(leftBoxShadowInter);
				}
			},200);
			
			var topBoxShadowInter = setInterval(()=>{
				this.topBoxShadow--;
				if(this.topBoxShadow==0){
					clearInterval(topBoxShadowInter);
				}
			},200);
			
		},
		methods: {
			
		}
	}
</script>

<style>
.yueka-image{
	/* box-shadow: 0 5rpx 10rpx #AE9062; */
	border-radius: 20rpx;	
}
.yueka-image:active{
	box-shadow: 0 2rpx 2rpx #AE9062;	
}
.nianka-image{
	/* box-shadow: 0 5rpx 10rpx #AA41E6; */
	border-radius: 20rpx;
}
.nianka-image:active{
	box-shadow: 0 2rpx 2rpx #AA41E6;
}

.zengsong-yuekan{
	position: absolute;
	bottom: 20rpx;
	right: 200rpx;
	color:#AE9062;
	border-radius: 100rpx;
	padding: 10rpx 20rpx 10rpx 20rpx;
	display: inline-block;
	background-color: #FFFFFF;
	position: absolute;
}
.jihuo-yueka{
	position: absolute;
	bottom: 20rpx;
	right: 60rpx;
	color:#AE9062;
	border-radius: 100rpx;
	padding: 10rpx 20rpx 10rpx 20rpx;
	display: inline-block;
	background-color: #FFFFFF;
}
</style>
